var exec = require('cordova/exec');

 (function(cordova){
    var Omp = function() {

    };

    Omp.prototype.getUserInfo = function(params, success, fail) {
        return exec(success,fail, 'omp', 'getUserInfo', params);
    };

    Omp.prototype.logout = function(params, success, fail) {
        return exec(success,fail, 'omp', 'logout', params);
     };

     Omp.prototype.callNativeModule = function(params, success, fail) {
        return exec(success,fail, 'omp', 'callNativeModule', params);
     };

    window.omp = new Omp();

    // backwards compatibility
    window.plugins = window.plugins || {};
    window.plugins.omp = window.omp;
})( window.Cordova || window.cordova);
